<%@ page contentType="text/html; charset=utf-8" import="java.sql.*"%>
<jsp:useBean id="connection" scope="page" class="com.wy.JDBConnection"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../CSS/style.css">
<title>
Goods_xiangxi page
</title>
</head>
<%!
ResultSet rs=null;
String sql;
String userName;
int num;
%>
<%
sql="select * from tb_GoodsMeg where ID="+request.getParameter("id");
%>

<body bgcolor="#ffffff">
<jsp:include page="mtop.jsp"/>
<table width="785" height="377" border="1" align="center" cellpadding="0" cellspacing="0"bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#333333">
  <tr>
    <td height="52" colspan="4" align="center">
    货物详细信息</td>
  </tr>
<%try
{
rs=connection.executeQuery(sql);
if(rs.next())
{
num=rs.getInt("ID");
%>
<tr>
    <td width="21%" height="29" align="center">货物类型：</td>
    <td width="31%" height="29" align="center"><%=rs.getString("GoodsStyle")%></td>
    <td width="21%" height="29" align="center">货物名称：</td>
    <td width="27%" height="29" align="center"><%=rs.getString("GoodsName")%></td>
  </tr>
  <tr>
    <td width="21%" height="29" align="center">货物数量：</td>
    <td width="31%" height="29" align="center"><%=rs.getString("GoodsNumber")%> </td>
    <td width="21%" height="29" align="center">数量单位：</td>
    <td width="27%" height="29" align="center">  <%=rs.getString("GoodsUnit")%></td>
  </tr>
  <tr>
    <td width="21%" height="29" align="center">起始省份：</td>
    <td width="31%" height="29" align="center"><%=rs.getString("starprovince")%></td>
    <td width="21%" height="29" align="center">起始城市：</td>
    <td width="27%" height="29" align="center"><%=rs.getString("StartCity")%></td>
  </tr>
  <tr>
    <td width="21%" height="29" align="center">抵达省份：</td>
    <td width="31%" height="29" align="center"><%=rs.getString("EndProvince")%></td>
    <td width="21%" height="29" align="center">抵达城市：</td>
    <td width="27%" height="29" align="center"><%=rs.getString("EndCity")%></td>
  </tr>
  <tr>
    <td width="21%" height="30" align="center">运输类型：</td>
    <td width="31%" height="30" align="center"> <%=rs.getString("Style")%></td>
    <td width="21%" height="30" align="center">运输时间：</td>
    <td width="27%" height="30" align="center"> <%=rs.getString("transportime")%></td>
  </tr>
  <tr>
    <td width="21%" height="29" align="center">联系电话：</td>
    <td width="31%" height="29" align="center"><%=rs.getString("Phone")%></td>
    <td width="21%" height="29" align="center">联系人：</td>
    <td width="27%" height="29" align="center"><%=rs.getString("Link")%> </td>
  </tr>
  <tr>
    <td width="21%" height="31" align="center">发布时间：</td>
    <td height="31" colspan="3"><%=rs.getDate("IssueDate")%></td>
  </tr>
  <tr>
    <td width="21%" height="52" align="center">备注：</td>
    <td height="52" align="center" colspan="3">
      <p align="left"><%=rs.getString("Remark")%></td>
  </tr>
  <tr>
    <td width="21%" height="52" align="center">车辆要求：</td>
    <td height="52" align="center" colspan="3">
      <p align="left"><%=rs.getString("Request")%></td>
  </tr>
<tr>
 <%
userName=rs.getString("UserName");
 %>
    <td width="21%" height="31" align="center">发布人：</td>
    <td height="31" colspan="3" align="left"><%=userName%></td>
  </tr>
    <tr>
      <td height="33" colspan="4" align="center">
        <a href="goods_change.jsp?id=<%=num%>">修改</a>&nbsp;&nbsp;
        <a href="goods_delete.jsp?id=<%=num%>">删除</a>
      </td>
    </tr>

<%
}

}catch(SQLException e)
{
 System.out.println("查询异常！！");
}
%>
</table><jsp:include page="../down.jsp"/>
</body>
</html>
